﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true" culture="auto" meta:resourcekey="PageResource1" uiculture="auto"
    CodeFile="TrackingDtl.aspx.cs" Inherits="TrackingManage_TrackingDtl" Title="车辆动态信息" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="title"><asp:Label ID="lblPageType" runat="server" Text="车辆信息" meta:resourcekey="lblPageTypeResource1"></asp:Label></div>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table class="add_table tblGridView" cellspacing="1" cellpadding="3" style="width: 100%" align="center">
                <tr>
                    <td align="right" width="15%"><asp:Label ID="lblTContractor" runat="server" Text="运输队：" meta:resourcekey="lblTContractorResource1"></asp:Label></td>
                    <td><asp:Label ID="lblContractor" runat="server" 
                            meta:resourcekey="lblContractorResource1"></asp:Label></td>
                    <td align="right" width="15%"><asp:Label ID="lblTLinceseNO" runat="server" Text="车牌号：" meta:resourcekey="lblTLinceseNOResource1"></asp:Label></td>
                    <td><asp:Label ID="lblLicenseNO" runat="server" 
                            meta:resourcekey="lblLicenseNOResource1"></asp:Label></td>
                    <td align="right" width="15%"><asp:Label ID="lblTDriver" runat="server" Text="司机：" meta:resourcekey="lblTDriverResource1"></asp:Label></td>
                    <td><asp:Label ID="lblDriver" runat="server" meta:resourcekey="lblDriverResource1"></asp:Label></td>
                </tr>
            </table>
            <div class="list_title">
             <div class="autoleft">
                <asp:Label ID="lblTitle" runat="server" Text="车辆动态：" meta:resourcekey="lblTitleResource1"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;<a 
                     href="TrackingAdd.aspx?STID=&amp;TID=&amp;rtn=" runat="server" id="lnkAdd"><asp:Label
                    ID="lblTrackingAdd" runat="server" Text="新 增" meta:resourcekey="lblTrackingAddResource1"></asp:Label></a></div>
                     </div>
            <asp:GridView ID="gvTrackingList" runat="server" AutoGenerateColumns="False" OnRowCommand="gvTrackingList_RowCommand"
                Width="100%" OnRowDataBound="gvTrackingList_RowDataBound" 
                CssClass="tblGridView" meta:resourcekey="gvTrackingListResource1">
                <Columns>
                    <asp:TemplateField HeaderText="动态" meta:resourcekey="TemplateFieldResource1">
                        <ItemTemplate>
                            <asp:Label ID="lblTruckStatus" runat="server" Text='<%# Eval("TruckStatus") %>' 
                                meta:resourcekey="lblTruckStatusResource1"></asp:Label>
                            <asp:Label ID="lblHKTruckStatus" runat="server" Text='<%# Eval("HKTruckStatus") %>' 
                                meta:resourcekey="lblTruckStatusResource1"></asp:Label>
                            <asp:Label ID="lblENGTruckStatus" runat="server" Text='<%# Eval("ENGTruckStatus") %>' 
                                meta:resourcekey="lblTruckStatusResource1"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="10%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="动态开始时间" 
                        meta:resourcekey="TemplateFieldResource2">
                        <ItemTemplate>
                            <asp:Label ID="lblCBDate" runat="server" 
                                Text='<%# Eval("CBDate", "{0:yyyy-MM-dd HH:mm:ss}") %>' 
                                meta:resourcekey="lblCBDateResource1"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="10%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="动态结束时间" 
                        meta:resourcekey="TemplateFieldResource3">
                        <ItemTemplate>
                            <asp:Label ID="lblCEDate" runat="server" 
                                Text='<%# Eval("CEDate", "{0:yyyy-MM-dd HH:mm:ss}") %>' 
                                meta:resourcekey="lblCEDateResource1"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="10%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="添加人" meta:resourcekey="TemplateFieldResource4">
                        <ItemTemplate>
                            <asp:Label ID="lblCreateUser" runat="server" Text='<%# Eval("CreateUser") %>' 
                                meta:resourcekey="lblCreateUserResource1"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="5%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="添加时间" meta:resourcekey="TemplateFieldResource5">
                        <ItemTemplate>
                            <asp:Label ID="lblCreateDate" runat="server" 
                                Text='<%# Eval("CreatedDate", "{0:yyyy-MM-dd HH:mm:ss}") %>' 
                                meta:resourcekey="lblCreateDateResource1"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="10%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="备注" meta:resourcekey="TemplateFieldResource6">
                        <ItemTemplate>
                            <asp:Label ID="lblRemark" runat="server" Text='<%# Eval("Remark") %>' 
                                meta:resourcekey="lblRemarkResource1"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="10%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作" meta:resourcekey="TemplateFieldResource7">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtnDel" runat="server" Text="删除" CommandArgument='<%# Eval("PKID") %>'
                                OnClientClick='<%# "javascript:return confirm(\""+   Resources.Messages.DelRecord  +"\")" %>' 
                                CommandName="Del" meta:resourcekey="lbtnDelResource1"></asp:LinkButton>
                        </ItemTemplate>
                        <ItemStyle Width="5%" />
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle HorizontalAlign="Center"/>
                <RowStyle HorizontalAlign="Center" />
            </asp:GridView>
        </ContentTemplate>
    </asp:UpdatePanel>
    <table style="width: 100%">
        <tr><td align="right"></td></tr>
        <tr><td width="100%" align="right"><a href="" id="lblReturn" runat="server"><asp:Label ID="ss" CssClass="btn" style="padding-top: 3px;padding-bottom:3px;" runat="server" meta:resourcekey="lblReturnResource1" Text="返回"></asp:Label></a>
        </td></tr>
    </table>
    
</asp:Content>
